<?php
	('Access-Control-Allow-Origin：*');
	include("../config/mysql.php");
	$id = $_POST["id"];
    $companyName = $_POST["companyName"];
	$contacts = $_POST["contacts"];
	$contactsIphone = $_POST["contactsIphone"];
	$shenfenType = $_POST["shenfenType"];
	$remarks = $_POST["remarks"];
	$db = new mysql();
	$sql = "update resource set companyName='{$companyName}',contacts='{$contacts}',contactsIphone='{$contactsIphone}',shenfenType='{$shenfenType}',remarks='{$remarks}' where Id = '{$id}'";
	echo $db->Query($sql);
	$db->close();
?>